﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuChaHuRen.HeNan.XiangCheng.Models.Others
{
    public class BaseConfig
    {
        

        /// <summary>
        /// 数据库链接
        /// 使用des加密
        /// </summary>
        public string PACSConnStr { get; set; }


        /// <summary>
        /// 检查(报告)上传cron表达式
        /// </summary>
        public string StudyUploadCron { get; set; }

        /// <summary>
        /// dicom文件传输cron表达式
        /// </summary>
        public string DicomTransferCron { get; set; }

        /// <summary>
        /// 上传记录日期优先级,设置为true,优先上传创建日期最近的报告
        /// </summary>
        public bool ReocrdUploadDatePriority { get; set; }


        public bool TestMode { get; set; }

        /// <summary>
        /// 当TestMode为true时,上传记录的最大限额
        /// </summary>
        public int MaxUploadLimit { get; set; }

        /// <summary>
        /// 上传报告的日期范围(单位:天)
        /// </summary>
        public int UploadRecordDateRange { get; set; }

        /// <summary>
        /// 本地dicom文件夹
        /// </summary>
        public string LocalWorkDir { get; set; }


        public List<OrgConfig> OrgConfigs { get; set; }


        public PlatformConfig PlatformConfig { get; set; }
    }

    public class OrgConfig
    {
        /// <summary>
        /// 影像系统中机构ID
        /// </summary>
        public string OrgID { get; set; }

        /// <summary>
        /// 第三方系统中维护的医院代码
        /// </summary>
        public string HospitalCode { get; set; }

    }

    public class PlatformConfig
    {
        public string ProviderID { get; set; }

        public string Password { get; set; }

        public string Host { get; set; }


        public string ReportUploadUrl { get; set; }

        public string StudyUploadUrl { get; set; }


        public string ReportFileUploadUrl { get; set; }

        public string YiBaoReportUploadUrl { get; set; }

        public string CSotreIP { get; set; }

        public int CStorePort { get; set; }

        public string CStoreAE { get; set; }

        public string LocalAE { get; set; }


    }
}
